package cn.hr.dao.mapper;

import cn.hr.base.BaseMapper;
import cn.hr.pojo.Train;
import org.apache.ibatis.annotations.Param;

import java.sql.SQLException;

/**
 * 培训DAO接口
 * @author MO
 *
 */
public interface TrainMapper extends BaseMapper<Train> {

    /**
     * 删除培训资料
     * @return
     * @throws SQLException
     */
    int delFile(@Param("id") Integer id) throws SQLException;

    /**
     * 查询资料路径
     * @return
     */
    Train selectPath(@Param("id") Integer id)throws SQLException;

    /**
     * 培训反馈
     * @param train
     * @return
     * @throws SQLException
     */
    int feedback(Train train)throws SQLException;

}
